<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div>
<h1 v-if="isV">楼德华</h1>
<h1 v-else>张学友</h1>
<h1 v-show="isV">郭富城</h1>
  <input type="button" value="按钮" v-on:click="f()">
</div>

 <script src=" https://cdn.staticfile.org/vue/2.2.2/vue.min.js"></script>
   <script>
     let v=new Vue({
       el:"body>div",
       data:{
         isV:true,
       },
       methods:{
         f(){
           v.isV=false
         }
       }
     })

   </script>
</body>
</html>